package edu.cuit.zhuyimeng.ticket.dal.po;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

/**
 * 飞机票表
 * @TableName ticket
 */
@TableName(value ="ticket")
@Data
@Builder
public class TicketPO implements Serializable {
    /**
     * 飞机票ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    @TableField(value = "user_login_id")
    private String userLoginId;

    /**
     * 航班ID
     */
    @TableField(value = "flight_id")
    private Long flightId;

    /**
     * 逻辑删除
     */
    @Schema(hidden = true)
    @TableLogic
    @JsonIgnore
    private Integer deleted;

    @TableField(exist = false)
    @Serial
    private static final long serialVersionUID = 1L;
}